<!--
 * @Description: 自定义v-model
 * @Author: zhanyinjia
 * @Date: 2022-06-13 10:20:11
 * @LastEditors: zhanyinjia
 * @LastEditTime: 2022-11-30 14:32:35
-->
<template>
  <div>
    <p>当前选中的id：{{ checkedId }}</p>
    <Model v-model="checkedId" :data="list"></Model>
  </div>
</template>

<script>
import { list } from '@/data/list'
export default {
  name: 'VModel',
  data() {
    return {
      checkedId: '',
      list
    }
  },
  components: {
    Model: () => import('./model.vue')
  }
}
</script>
<style lang="" scoped>
</style>